package com.coding.springboot.demo.repository;

import com.coding.springboot.demo.entity.TUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by qince on 2015/7/3.
 */
@Repository
public interface TUserRepository extends JpaRepository<TUser,String> {
    @Query("select u from TUser u where name = ?1")
    public List<TUser> findAllByName(String name);
}

